package com.lbx.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 吕兵星
 * @date 2020/11/3 11:01
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String  hello(){
        return "hello";
    }
    @ApiOperation("string")
    @PostMapping("/hello2")
    public String  hello2(String name){
        return "hello"+name;
    }
    @ApiOperation("集合")
    @PostMapping("/hello3")
    public List<String> hello3(String name,String age,String pwd){
       List<String> list = new ArrayList<>();
       list.add(name);
       list.add(age);
       list.add(pwd);
        return list;
    }


}
